home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 10260 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.4 KB  |  43 lines

  1. Newsgroups: comp.lang.c
  2. Path: uu4news.netcom.com!zodiac!szh
  3. From: szh@zcon.com (Syed Zaeem Hosain)
  4. Subject: Re: A question on for loop
  5. Message-ID: <1996Mar16.054906.8286@zcon.com>
  6. Sender: szh@zcon.com (Syed Zaeem Hosain)
  7. Nntp-Posting-Host: zodiac
  8. Reply-To: szh@zcon.com
  9. Organization: Z Consulting Group
  10. References: <826934210snz@genesis.demon.co.uk>
  11. Date: Sat, 16 Mar 1996 05:49:06 GMT
  12.  
  13. In article <826934210snz@genesis.demon.co.uk>, Lawrence Kirby <fred@genesis.demon.co.uk> writes:
  14. >In article <1996Mar14.041132.26035@zcon.com>
  15. >           szh@zcon.com "Syed Zaeem Hosain" writes:
  16. >
  17. >>        i = 0;
  18. >>        while ( i < 20 )
  19. >>        {
  20. >>                [some code here]
  21. >>                ...
  22. >>
  23. >>                ++i;    /* Can be i++ without any difference */
  24. >>        }
  25. >>
  26. >>The ++i can be i++ without any difference *in this case shown* since
  27. >>you are not relying on the side effect of the assignment.
  28. >
  29. >Or rather you are relying on the side effect only and not the value of the
  30. >expression.
  31.  
  32. Oops, sorry, yes. I said it back-a**wards.  Change the "not" in my
  33. statement to "only"! :-)
  34.  
  35.                                 Z
  36.  
  37.  
  38. -- 
  39. -------------------------------------------------------------------------
  40. | Syed Zaeem Hosain          P. O. Box 610097            (408) 441-7021 |
  41. | Z Consulting Group        San Jose, CA 95161             szh@zcon.com |
  42. -------------------------------------------------------------------------
  43.